import base from '../base' // 导入接口域名列表
import axios from '@/common/utils/http' // 导入http中创建的axios实例

const market = {
  /*
  * @param {Object} params - {code, token}
  * @param {id} params - id of market pair
  * **/
  ticker (id, params) {
    return axios.get(`${base.base_api}/market/ticker/${id}/`, {
      params: params
    })
  }
}

export default market
